﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using HPAGMRestAPIWrapper;

namespace AGMLite.BaseClass
{
    public class AGMLiteEntityViewField : AGMLiteEntityField
    {
        public event PropertyChangedEventHandler PropertyChanged;        

        #region Private members
        private int _order { get; set; }
        #endregion

        #region Properties
        public int Order
        {
            get
            {
                return _order;
            }
            set
            {
                if (value != _order)
                {
                    _order = value;
                    OnPropertyChanged("Order");
                }
            }
        }
        #endregion

        public AGMLiteEntityViewField() : base()
        {

        }

        #region INotifyPropertyChanged Members
        private void OnPropertyChanged(string propertyName)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }
        #endregion
    }
}
